from DrissionPage import ChromiumPage

page = ChromiumPage()
"""
<body>
  <div id="one">
    <p class="p_cls" name="row1">第一行</p>
    <p class="p_cls" name="row2">第二行</p>
    <p class="p_cls" style="display:none">第三行</p>
  </div>
  <div id="two">
    第二个div
  </div>
</body>
"""
page = ChromiumPage()
page.get("https://static.docs-hub.com/ysczdjbyf_1750214922342.html")
p_list = page.eles("tag:p")
print(p_list.filter_one.displayed().text)
# for p in p_list.filter_one.displayed():
#    print(p.text, p.attr("name"))
